package com.ruoyi.system.mapper;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.system.domain.SysLanguageData;
import com.ruoyi.system.domain.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 语言数据Mapper接口
 */
@Mapper
public interface SysLanguageDataMapper {

    /**
     * 查询语言翻译
     *
     * @param id 语言翻译主键
     * @return 语言翻译
     */
    public SysLanguageData selectSysLanguageDataById(Long id);

    /**
     * 查询语言翻译列表
     *
     * @param sysLanguageData 语言翻译
     * @return 语言翻译集合
     */
    public Page<SysLanguageData> selectSysLanguageDataList(Page<SysLanguageData> page, @Param("languageData") SysLanguageData sysLanguageData);

    /**
     * 新增语言翻译
     *
     * @param sysLanguageData 语言翻译
     * @return 结果
     */
    public int insertSysLanguageData(SysLanguageData sysLanguageData);

    /**
     * 修改语言翻译
     *
     * @param sysLanguageData 语言翻译
     * @return 结果
     */
    public int updateSysLanguageData(SysLanguageData sysLanguageData);

    /**
     * 删除语言翻译
     *
     * @param id 语言翻译主键
     * @return 结果
     */
    public int deleteSysLanguageDataById(Long id);

    /**
     *
     */
    public SysLanguageData selectByRef(@Param("refId") Long refId, @Param("refType") String refType,@Param("languageCode") String languageCode);
}